package com.xbk.seckill.stock.application.model.command;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author xiexu
 * @date 2025/3/8 22:03
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class SeckillStockBucketGoodsCommand implements Serializable {

    private static final long serialVersionUID = -3277417752771378782L;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 商品id
     */
    private Long goodsId;

    public boolean isEmpty() {
        return this.userId == null
                || this.goodsId == null;
    }

}
